import request from '@/utils/request/req';

// 更新用户登录信息
export function updateUserLogin(data: { avatar: string; username: string }) {
  return request({
    url: '/msg/updateUserLogin',
    method: 'post',
    data
  });
}

// 获取当前登录人信息
export function getUserLogin() {
  return request({
    url: '/msg/getUserLogin',
    method: 'get'
  });
}
